const { Plot } = require("../Plot3d");

function init3D(params) {
    var list = [];
    for (let x = 0; x < 10; x++) {
        for (let y = 0; y < 10; y++) {
            for (let z = 0; z < 100; z++) {
                var obj = {
                    x, y, z: Math.sqrt(10000 - x ** 2 - y ** 2)
                }
                list.push(obj)
            }
            // index
        }
    }
    return list
}

var t3 = init3D()
var plot = new Plot(document.querySelector("#myCanvas"));
plot.draw3D(t3);